package mips.instruction;

import mips.Reg;
import mips.element.Instruction;

public class LH extends Instruction {
    private Reg rt;
    private Reg base;
    private String offset;

    public LH(Reg rt, String offset, Reg base) {
        this.rt = rt;
        this.offset = offset;
        this.base = base;
    }

    public Reg getRt() {
        return rt;
    }

    public Reg getBase() {
        return base;
    }

    public String getOffset() {
        return offset;
    }

    public String toString() {
        return "lh\t" + rt + " " + offset + "(" + base + ")";
    }
}
